package com.aistar.service;

import com.aistar.pojo.Member;

import java.util.List;

public interface MemberService {

    //添加用户
    public boolean save(Member member);
    //修改用户
    public boolean update(Member member);
    //根据主键查询
    public Member getById(int memberId);

    //查询所有用户
    public List<Member> selectall();

    //根据手机号查询
    public Member getByTelno(Long memberTelno);

    //登录根据用户名或名密码
    public Member login(String username, String password);

    //登录根据手机号或名密码
    public Member loginByTelno(Long memberTelno, String password);

}
